<include file="Public:header" />
<div class="headbar">
    <div class="position"><span>促销</span><span>></span><span>促销活动</span><span>></span><span>{$name}</span></div>
    <div class="operating">
        <a href="{:U('Game/game_edit',array('type_id'=>$type_id))}"><button class="operating_btn" type="button" ><span class="addition">添加活动</span></button></a>
        <a href="{:U('Game/prize_list',array('type_id'=>$type_id))}"><button class="operating_btn" type="button" ><span class="grade">中奖纪录</span></button></a>
    </div>
</div>

<div class="content">
    <table id="list_table" class="list_table">
        <colgroup>
            <col width="100px" />
            <col width="150px" />
            <col width="150px" />
            <col width="200px" />
            <col width="200px" />
            <col width="150px" />
        </colgroup>

        <thead>
            <tr>
                <th>排序</th>
                <th>活动名称</th>
                <th>活动商品</th>
                <th>活动时间</th>
                <th>是否开启</th>
                <th>操作</th>
            </tr>
        </thead>

        <tbody>
            <foreach name='list' item='item' key='key'>
            <tr>
                <td><input class="tiny" id="sort{$item['id']}" type="text" onblur="toSort({$item['id']});" value="{$item['sort']}" pattern='int' /></td>
                <td>{$item['title']}</td>
                <td>{$item['name']}</td>
                <td>{$item['start_time']}~{$item['end_time']}</td>
                <td><if condition="$item['is_close'] eq 1">否<else/>是</if></td>
                <td>
                    <a href="{:U('Game/game_edit', array('id' => $item[id]))}"><img class="operator" src="__PUBLIC__/Partner/images/admin/icon_edit.gif" alt="修改" /></a>
                    <a href="javascript:void(0)" onclick="delModel({link:'{:U('Game/game_del', array('id' => $item[id]))}'})"><img class="operator" src="__PUBLIC__/Partner/images/admin/icon_del.gif" alt="删除" /></a>
                </td>
            </tr>
            </foreach>
        </tbody>
    </table>
    {$page}
</div>
<include file="Public:footer" />